home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
Scale_Percent.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
720b
|
36 lines
/*
* Scale_Percent.ifx.pre
* Written by Thomas Krehbiel
*
* Scale By Percent.
*
* 20.01.95 tek Moved Width gadget over.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_ScalePct_'
w = GETCLIP(base||'w') ; IF w = "" THEN w = 50
h = GETCLIP(base||'h') ; IF h = "" THEN h = 50
Gadget.1 = 'INTEGER 90 5 50 14 "Width (%):"' w
Gadget.2 = 'INTEGER 230 5 50 14 "Height (%):"' h
Gadget.3 = 'END'
NewComplexRequest '"Scale By Percentage"' Gadget 300 36
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'w', result.1)
CALL SETCLIP(base||'h', result.2)
EXIT